#!/bin/sh
echo "find apollo-front-1.0.0-SNAPSHOT-exec.jar process and kill"
     
PROCESS=`ps -ef|grep "apollo-front-1.0.0-SNAPSHOT-exec.jar"|grep -v grep|grep -v PPID|awk '{ print $2}'`
for i in $PROCESS
do
    echo "Kill process [ $i ]"
    kill -9 $i
done

echo "apollo-front start .... "
echo "please wait a moment...."

nohup java -Djava.security.egd=file:/dev/./urandom -jar ./apollo-front/target/apollo-front-1.0.0-SNAPSHOT-exec.jar >> front_nohup.out &

echo "apollo-front end"
